package com.interagriculture.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author 11 2024/11/9
 */
@Getter
@AllArgsConstructor
public enum ExceptionCodeEnum {

    USER_NOT_EXIST(405,"用户不存在"),
    USER_HAVE_EXIST(407,"用户已存在"),
    ERROR_REQUEST(400,"请求错误"),
    ERROR_CHECK_CODE(401,"验证码错误"),
    PICTURE_TOO_LARGE(402,"图片过大"),
    FORMAT_ERROR(403,"格式错误"),
    LOGGING_FIRST(406,"登录超时，请先登录"),
    PASSWORD_NOT_NULL(408,"密码不能为空"),
    FILE_UPLOAD_FAIL(504,"文件上传失败"),
    DELETE_ERROR(506,"删除失败"),
    ERROR_LOGIN(505,"账号或密码错误");

    private Integer code;
    private String message;

}
